# Maintainer: CYBERDEViL <cyberdev [at] disroot [dot] org>
pkgname=searx-qt
_pkgver=0.5.0-alpha1
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Desktop client application for Searx/SearXNG/searx-space"
maintainer="CYBERDEViL"
arch="all"
url="https://notabug.org/CYBERDEViL/searx-qt"
license=("GPL3")
depends=("python3-requests" "python3-pyqt5" "python3-jsonschema"
         "python3-bs4")
optdepends=("python3-pysocks: socks proxy support")
makedepends=("wget" "gettext" "qtbase5-dev-tools")
source=("$pkgname-$_pkgver.tar.gz::$url/archive/$_pkgver.tar.gz")
sha512sums=("99e7c67126e5c4b16ee01a79574f511a480df304de92b8eb704b0d025e486581de4c6dc5f783361b2c4ef6e989e5f59a261221b634697a69b9d4587eea3a28e3")

build() {
    cd "$srcdir/$pkgname"
    python3 setup.py build
}

package() {
    cd "$srcdir/$pkgname"
    python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
